﻿using _10_HPBar.GameFrame;
using _10_HPBar.GameFrame.Interface;
using _10_HPBar.Tool;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _10_HPBar
{
    internal class Treasure : GameObject, IDialog
    {
        public int DialogId { get; }


        string display;
        int offsetX, offsetY;
        public int index;

        public Treasure(Pos pos,int offsetX,int offsetY,string display,int index,int dialogId = -1)
        {
            Pos = pos;
            DialogId = dialogId;
            this.display = display;
            this.offsetX = offsetX;
            this.offsetY = offsetY;
            this.index = index;
        }

        public void Render()
        {
            Utility.MyPrint(display, Pos.x + offsetX, Pos.y + offsetY);
        }
    }
}
